package response

var (
	OK = NewResp(0, "操作成功")

	// 通用
	ErrSystem         = NewResp(10001, "系统异常")
	ErrInvalidParam   = NewResp(10004, "参数错误")
	ErrStore          = NewResp(10005, "数据保存失败")
	ErrCreate         = NewResp(10006, "数据创建失败")
	ErrUpdate         = NewResp(10007, "数据更新失败")
	ErrDel            = NewResp(10008, "数据删除失败")
	ErrDestroy        = NewResp(10009, "数据删除失败")
	ErrRecordNotFound = NewResp(10010, "数据不存在")
	ErrForbidden      = NewResp(10011, "无权访问")
	ErrExists         = NewResp(10011, "数据已存在")
	ErrQuery          = NewResp(10012, "查询错误")

	// user模块
	ErrUnAuthorize   = NewResp(20001, "未登录或非法访问")
	ErrInvalidToken  = NewResp(20002, "无效Token")
	ErrInvalidUser   = NewResp(20004, "非法用户")
	ErrLoginPassword = NewResp(20005, "密码错误")
	ErrPswNotMatch   = NewResp(20006, "原密码校验错误")

	// role模块
)
